package com.hou.hpsj_springboot.controller;

import com.hou.hpsj_springboot.bean.Videos;
import com.hou.hpsj_springboot.entity.R;
import com.hou.hpsj_springboot.service.VideoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.ArrayList;


@RestController
@RequestMapping("video")
public class VideoController {
    @Resource
    private VideoService videoService;

    @GetMapping("selectVideo")
    public ArrayList<Videos> selectVideos(int userId) {
        return videoService.selectVideos(userId);
    }
}
